#fileList {
    width: 290px;
    border-right: 1px solid #444;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background-color: #252526;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width, height;
}

/* 亮色主题样式 */
body.theme-light #fileList {
    background-color: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
}

#fileList:hover {
    border-right-color: #444;
}

.file-list-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: #252526;
    padding: 0 0 10px 0;
    margin: 0 0 10px 0;
    z-index: 999;
}

body.theme-light .file-list-header {
    background-color: #f5f5f5;
}

#fileFilter {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 3px;
    background-color: #3c3c3c;
    color: #fff;
    font-size: 14px;
    height: 32px;
    box-sizing: border-box;
    outline: none;
}

body.theme-light #fileFilter {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #333;
}

body.theme-light #fileFilter:focus {
    border-color: #0066b8;
}

#addFileBtn {
    background-color: #444;
    border: none;
    color: #fff;
    padding: 0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: all 0.2s;
    white-space: nowrap;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: linear-gradient(to bottom right, #2979ff, #1565c0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#addFileBtn:hover {
    opacity: 1;
    background-image: linear-gradient(to bottom right, #2962ff, #1976d2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#addFileBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-image: linear-gradient(to bottom right, #1565c0, #0d47a1);
}

#addFolderBtn {
    background-color: #444;
    border: none;
    color: #fff;
    padding: 0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.2s;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fileListItems {
    position: relative;
    padding-top: 10px;
}

#fileListItems li {
    margin-bottom: 2px;
}

#fileListItems a {
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s;
    display: block;
    padding: 6px 10px;
    border-radius: 3px;
    background-color: transparent;
    font-size: 13px;
    position: relative;
    opacity: 0.8;
    cursor: move;
}

body.theme-light #fileListItems a {
    color: #333333;
    opacity: 1;
}

body.theme-light #fileListItems a:hover {
    background-color: #e8e8e8;
    color: #0066b8;
}

body.theme-light #fileListItems a.selected {
    background-color: #e8f0fe;
    color: #0066b8;
    font-weight: 500;
}

#fileListItems a::before {
    content: "📄";
    margin-right: 5px;
    opacity: 0.7;
}

.folder {
    margin-bottom: 5px;
}

.folder-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 10px;
    cursor: pointer;
    color: #ffffff;
    opacity: 0.8;
    transition: all 0.2s;
    position: relative;
    text-align: left;
}

body.theme-light .folder-header {
    color: #0066b8;
    opacity: 1;
    font-weight: 500;
}

body.theme-light .folder-header:hover {
    background-color: #e8e8e8;
}

.folder-header::before {
    content: "📁";
    margin-right: 5px;
    opacity: 0.7;
}

.folder-header.open::before {
    content: "📂";
}

.folder-content {
    margin-left: 20px;
    display: none;
}

.folder-content.open {
    display: block;
}

.folder-header.drag-over {
    background-color: #094771;
}

.folder-header.drag-over::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border: 2px dashed #2979ff;
    border-radius: 3px;
    pointer-events: none;
}

body.theme-light .folder-header.drag-over {
    background-color: #e3f2fd;
}

body.theme-light .folder-header.drag-over::after {
    border: 2px dashed #0066b8;
}

body.theme-light .drag-over-top {
    border-top: 2px solid #0066b8;
}

body.theme-light .drag-over-bottom {
    border-bottom: 2px solid #0066b8;
}

.dragging {
    opacity: 0.5;
}

.drag-over-top {
    border-top: 2px solid #2979ff;
}

.drag-over-bottom {
    border-bottom: 2px solid #2979ff;
}

.sort-buttons {
    display: flex;
    gap: 2px;
    margin-left: 8px;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.file-container:hover .sort-buttons,
.folder-header:hover .sort-buttons {
    opacity: 1;
}

.sort-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1;
}

body.theme-light .sort-buttons {
    opacity: 0.6;
}

body.theme-light .sort-button {
    color: #424242;
}

body.theme-light .sort-button:hover {
    color: #0066b8;
}

@media only screen and (max-width: 768px) {
    #fileList {
        display: none;
    }
} 